package org.biubiu0002.baiblog.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.biubiu0002.baiblog.core.model.entity.GroupUserEntity;

/**
 * @Author: biubiu0002
 * @Date: 2022/12/8 14:05
 **/
public interface GroupUserDao extends BaseMapper<GroupUserEntity> {
    /**
     * 在群聊中是否存在uid这个用户
     * @param groupUid 群聊id
     * @param userUid 用户id
     * @return count
     */
    int countByGroupAndUserId(@Param("groupUid") String groupUid, @Param("userUid") String userUid);
}
